import { postAxios, getAxios } from '@/lib/http';
export const purchaseOrderApi = {
    // 新增
    add: (data) => {
        return postAxios('/purchaseOrder/add', data);
    },
    // 分页查询
    getList: (data) => {
        return postAxios('/purchaseOrder/page/query', data);
    },
    // 删除
    delete: (id) => {
        return getAxios('/purchaseOrder/delete/' + id);
    },
    // 查看详情
    getDetail: (id) => {
        return getAxios('/purchaseOrder/detail/' + id);
    },
    // 更新
    update: (data) => {
        return postAxios('/purchaseOrder/update', data);
    }
};
